<?php
class Tedi_Date extends Zend_Date
{
    public function getDaysDiffrence(Zend_Date $date)
    {
        return floor(($date->getTimestamp() - $this->getTimestamp()) / (24 * 60 * 60));
    }
}
?>